<%@ page import="com.ld.xuanKe.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-10-31
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>结果</title>
    <style>
        .container{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        h2 {
            text-align: center;
        }

    </style>
</head>
<body>
<%
    User user = (User)session.getAttribute("user");
	String url;
	if(user.getStatus() == 0){
		url = "/home/user/index.jsp";
    }else {
        url = "/home/admin/index.jsp";
    }
%>
<div class="container">
    <h2>${message}</h2>
    <a href="<%=url%>">返回主页</a>
</div>
</body>
</html>
